package com.djx.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName FanoutWeChatConsumer
 * @Date 2021/6/8 0008 下午 13:58
 * @Author Administrator
 * @Description TODO
 * Version 1.0
 */
@Component
@RabbitListener(queues = {"weChat_direct_queue"})
public class DirecWeChatConsumer {

    @RabbitHandler
    public  void reviceMessage(String message){
        System.out.println("weChat_direct_queue--接收到的消息为："+message);
    }
}
